package com.ruoyi.teacherinformation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacherinformation.mapper.AlgsTeacherMapper;
import com.ruoyi.teacherinformation.domain.AlgsTeacher;
import com.ruoyi.teacherinformation.service.IAlgsTeacherService;

/**
 * 教师信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-16
 */
@Service
public class AlgsTeacherServiceImpl implements IAlgsTeacherService 
{
    @Autowired
    private AlgsTeacherMapper algsTeacherMapper;

    /**
     * 查询教师信息
     * 
     * @param teacherId 教师信息主键
     * @return 教师信息
     */
    @Override
    public AlgsTeacher selectAlgsTeacherByTeacherId(Long teacherId)
    {
        return algsTeacherMapper.selectAlgsTeacherByTeacherId(teacherId);
    }

    /**
     * 查询教师信息列表
     * 
     * @param algsTeacher 教师信息
     * @return 教师信息
     */
    @Override
    public List<AlgsTeacher> selectAlgsTeacherList(AlgsTeacher algsTeacher)
    {
        return algsTeacherMapper.selectAlgsTeacherList(algsTeacher);
    }

    /**
     * 新增教师信息
     * 
     * @param algsTeacher 教师信息
     * @return 结果
     */
    @Override
    public int insertAlgsTeacher(AlgsTeacher algsTeacher)
    {
        return algsTeacherMapper.insertAlgsTeacher(algsTeacher);
    }

    /**
     * 修改教师信息
     * 
     * @param algsTeacher 教师信息
     * @return 结果
     */
    @Override
    public int updateAlgsTeacher(AlgsTeacher algsTeacher)
    {
        return algsTeacherMapper.updateAlgsTeacher(algsTeacher);
    }

    /**
     * 批量删除教师信息
     * 
     * @param teacherIds 需要删除的教师信息主键
     * @return 结果
     */
    @Override
    public int deleteAlgsTeacherByTeacherIds(Long[] teacherIds)
    {
        return algsTeacherMapper.deleteAlgsTeacherByTeacherIds(teacherIds);
    }

    /**
     * 删除教师信息信息
     * 
     * @param teacherId 教师信息主键
     * @return 结果
     */
    @Override
    public int deleteAlgsTeacherByTeacherId(Long teacherId)
    {
        return algsTeacherMapper.deleteAlgsTeacherByTeacherId(teacherId);
    }
}
